package com.example.p2;

import java.util.*;

public class RunoobTest {

    static void reverse(Integer a[]) {
        Collections.reverse(Arrays.asList(a));
        System.out.println(Arrays.asList(a));
    }

    public static void main(String[] args) {
        Integer[] arr = {10, 20, 30, 40, 50};
        reverse(arr);
    }
}